package br.com.lis;

import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

public class HomeActivity extends Fragment {
	Button  btDeletar;
	Bundle bd;
	String nomeUsuario;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.activity_home, null);
		//bd = getIntent().getExtras();
		//nomeUsuario = bd.getString("nomeUsuario");
		nomeUsuario = getArguments().getString("nomeUsuario");  
		
		/*btDeletar  = (Button) view.findViewById(R.id.btDeletar);		
		
		btDeletar.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				FragmentTransaction ft;
				Fragment frag;
				
				Bundle b = new Bundle();
				b.putString("nomeUsuario", nomeUsuario);
				frag = new DeletarActivity();
				frag.setArguments(b);
				ft = getFragmentManager().beginTransaction();				
				ft.replace(R.id.flDrawerHome, frag);
				ft.commit();
			*/	
				/*Intent intent = new Intent(HomeActivity.this, DeletarActivity.class);
				Bundle b = new Bundle();
				b.putString("nomeUsuario", nomeUsuario);
				intent.putExtras(b);
				startActivity(intent);*/
		/*	}
		});
		*/
		
		return(view);
	}
}
